package com.study.notepad.service;

import com.study.notepad.bean.Note;
import com.study.notepad.util.PageUtil;

import java.util.List;

public interface NoteService {
    List<Note> queryByUserId(Integer userId, PageUtil pageUtil);

    Integer saveNote(Integer userId, String title, String content);

    Integer deleteById(Integer id);

    Integer updateById(Integer id,String title, String content);

    Note queryById(int id);

    Integer totalNum(Integer userId);
}
